"""
社区页面
"""
from page.BASE_PAGE import BasePage
class SHEQU(BasePage):
    # 点击社区
    def dj_shequ(self):
        self.driver.find_element_by_android_uiautomator('new UiSelector().text("社区")').click()
    # 点击最新
    def dj_zuixing(self):
        self.driver.find_element_by_android_uiautomator('new UiSelector().text("最新")').click()
    # 点击湘菜
    def dj_xiangchai(self):
        self.driver.find_element_by_android_uiautomator('new UiSelector().text("湘菜")').click()
    # 点击返回
    def fanhui(self):
        self.driver.press_keycode(4)
    # 点击关注
    def dj_guanzhu(self):
        self.driver.find_element_by_android_uiautomator('new UiSelector().text("关注")').click()
    # 点击黄小芽
    def dj_xiaohuangya(self):
        self.driver.find_element_by_android_uiautomator('new UiSelector().text("黄小芽")').click()
    # 点击粉丝
    def dj_fenshi(self):
        self.driver.find_element_by_android_uiautomator('new UiSelector().text("粉丝")').click()
    # 点击获赞与收藏
    def dj_huozhanyushouchang(self):
        self.driver.find_element_by_android_uiautomator('new UiSelector().text("获赞与收藏")').click()
    # 点击知道了
    def dj_zhidaole(self):
        self.driver.find_element_by_android_uiautomator('new UiSelector().text("知道了")').click()
    # 点击作品
    def dj_zuoping(self):
        self.driver.find_element_by_android_uiautomator('new UiSelector().text("作品")').click()
    # 点击第一个博主关注
    def dj_diyigebozhuguanzhu(self):
        self.driver.tap([(770, 320)], 1000)

